package androidx.fragment.app;

import android.app.Activity;
import android.app.Instrumentation;
import android.os.Bundle;
import android.os.PersistableBundle;

import androidx.annotation.Keep;

import com.plata.base.base.CommonUtil;

@Keep
public class ProxyInstrumentation extends Instrumentation {

    Instrumentation instrumentation;

    public ProxyInstrumentation(Instrumentation instrumentation) {
        this.instrumentation = instrumentation;
    }

    @Override
    public void callActivityOnCreate(Activity activity, Bundle icicle) {
        CommonUtil.setHandler(activity);
        super.callActivityOnCreate(activity, icicle);
    }

    @Override
    public void callActivityOnCreate(Activity activity, Bundle icicle, PersistableBundle persistentState) {
        CommonUtil.setHandler(activity);
        super.callActivityOnCreate(activity, icicle, persistentState);
    }
}
